fixed canvas coord gettin bug