this fixes a few bugs when starting insol