fix problem with moving a plane wave in gui

when the plane wave distance was 0 (zero), it couldn't be moved in the
GUI