fixed exception being thrown on startup