Fix error preventing login