Another bug fix for transformations within a reference frame