fixes issue in constructing api for certain level