Fix login script