hotfix. clear() bug