fix to setAlias method.