fixes for pen interacting with trails