Fixes comparison errors