Fixes for compare function