fixed error in inputMove