Fixed problem with the os hanging on startup