squash! Fix script bugs