Fix unable to place static objectives

Unable to place static objectives if there are
less static objectives than random ones