stack vector bug fix