fix the input on different resolution