Fixed some delete and unhide bugs