added console.log to show canvas inconsistency