Fixed the input directions