Fixed use of uninitialized value $format