this was causing an error on login