Fixed a few errors I noticed from NewRelic