fixed canvas object click bug