Fixed stack underrun error