Fixes removeById method in model.