Fix error in creating results instance