bug fix fetch record with default value in ActiveRecord