Spen issue only causes when using Starlte or star2lte TWRP on N9. this way your phone will be detected as S9 and air command won't be installed. So make sure to flash crownlte TWRP & dirty flash the rom once. it'll probably fix your issue
Just flash my fix zip below.