Fixes a bug preventing admin login.