fix bbclass.