bug fixing in input sighting