fix non-initialized comparison