Fixed shifting for input processing

Fixed error introduced due to refactoring concerning the input processing