Fix bug in Eloquent.