fix problem in case nothing is found