fix version_compare bug

Still getting lot of error message after last commit. 
Add version_compare do not generate error message anymore.