Adding fix for compare

Credits goes to Harry D more info here:
http://blog.mudrasystems.com/post/2014/04/20/fixing-a-small-problem-with-ax-source-control.aspx