Fix bug with aliases not working in CLI