Fixed middleware cookie delete