fixed error that results form searching a blank line