Fix hiding view doesn't update empty class