fix assert errors in Debug compile (wrong printf fmt type - %d vs. %ld)