Fixed error when destroying user session