fixes #399 mode not set if direct access

https://github.com/GetSimpleCMS/GetSimpleCMS/issues/399#issuecomment-33280988