Fix to gii generator