fixed id issue in model