Fixed few mistakes.

see #289
Changing how default redirection works.
Queries update.