Fixed bug with input not refreshing