fixes logout not working