fixed some startup errors. #139