fixed app crash after submit