Fix a bug that calling the function with wrong format.