Fix bug introduced by new version of corelib