fix for assert