Fixing startup scripts