fix: some simple bugs in comparison