fixed bug with green object