Fixed Q library insertion