fix for rjs generation method