fixing some attaching notes bugs and staffline bugs