fix a problem with generated values