fixed several errors for api < 11