fix calc bug
fix pencil bug
fix second pencil change