Fix level build sometimes failing