fixed a login/pre-login view change hack bug