Fixed some running locally issues