fixing bug related to object disappearence