Fixed model inheritance bug #140