Fixing LBmonitor error, setting missing isPrimary variable