fixed build bugs from kernel and edge classes