Prevent invalid type pathTransform