Modified assert in helper.cpp