Fixed 'hide' functionality