fix the target platform bug