Fixed for missing closing curly bracket in spatial_transform.