fix unused vars on asserts