Fix null value problem by removing incorrect format methods