Fixed issue where input would roll over.