fix a log in view bug