Fix double formatting bug