Fixed multiple bugs causing crashes

Also added a visualization fix to ISCAN