repair mouse part of prepare_input.sh