Fix for Issue #540. Redis transaction issue