correct problem in entities generation