Yet another bug fix related to clearing aliases cache.