fix bug draw free object; fix bug hide mode