fix assert and fix toString