Fix model with all relations