pen recognition error fixed