added input fix