Fixed centerOrigin() issue