Fixed some local errors I had