workaround for https://jira.appcelerator.org/browse/TC-4535