Improve and fix error in allocating stack slots: adjust alignment after adding