repair wrong input