changed collision from frame to bounds for pen