Fixing bug in GetAPIVersion