fix method call for early android versions