fix dependency to fn in gen