Workaround for the memory issue.