fix startup script