Oops. Fixed Bug that shuts down scheduler