fixed inheritance error related to code buffer