Fixed bug in LogicalProduct