Fixed nullpointer exception in BPA that would typically occur if first
glue() was called