Fixed issue with double registration of commands causing aliases to be
removed