Fix condition statement for accept items, fix two asserts