Fixed stack pointer error in VSM