fixed crash when responding