QB errors fixed