Finally fixed the input data type issue