Fix incorrect hide behavior