fixed emercency button crash