Fix bug with created_at