Fixed listener block execution

The blocks are values, not keys in the listener dictionary.