Fixes bug which causes scoop to crash