Fixed bug in format