Fixes bug with startup script