fix bug that shows up on login. need to understand better, but this will...

... solve the bug for now