Fixing bug in listener parameters.