Fixed incosistency in deleting/hiding. #299