Bug fix to transform expression