fix bug: class cant extend without constructor