fixed deletion of cookies