fixed bug in class callback