Fix illegal input format