fixed issues with alias generation (partially fixes #125)