fix for the assertions