bugfix basicClassTemplate