fixing bug in stan-mode