Fixed a couple bugs causing docs to not open correctly