fixed selection of events. (ph>20 | time != -999)