Change != 0 to not .is_zero(). Weird.
Fix #49: bug in action in non-zero weight. Can't believe that bug was still there!