fix inheritance issue