fixed a bug in getApk