fix the bug for the native application