Fixed null pointer caused by permissions derp.