Fix E_NOTICE when no query string
Fix encryption