fix fucntion 'hide' bug