Fix php error on logout