fix bug with missing format property