fixes input update issue