fixed an assertion that shall not fail when bootstrapping using a wieght file