fix assertion on startup