Fix error when convert function is defined and format is an array