fixed a bug in life rule construction