Solves a bug with login script and cookie params