fixed refgen