Bug #66 fixed: Fixed error replacing aliases