To my knowledge, you can't have multiple levels specified in the <level> section of the event (in this case, ON JOIN), so the code is only recognizing the first +20 for the level.

You could re-write the event to use a wildcard level, then check the actual userlevel with $ulevel or you could copy your ON JOIN event and specify +20 for one event and +90 for the other.