fix bug in output class about the type callback