Fixed pen display issues