Fix API version comparison
remove reference to uninitialized variable and extra parameter in function call