Fixing addListener error