Fixed bug on using format instead of array format.