Fixed bug preventing startup