fixed bug with object highlighting