fixed some issues with visualization and field calculation