Fixed incorrect local variable offset that was causing stack corruption.