fix for a bug with format