Fix NPE while parsing alias with spaces