Fix bug: remove inherits keywork in case of empty inherited tables