fixing assert compile error