Fix an error when left-clicking the object.