Fix up function
Fix up function