use proper alias name
don't throw syntax exception if no corpus is selected