fixed loading bug on SDK 4.0+