invalid entry bug fixed