Fixes critical comparison bug introduced with commit a8bbc80