fixed some errors in startup