fix canvas position issue