Fixed Environment Processor

Fixed an issue that was causing environment processing to add to the
previous state array