fixed bug; onregionclick would not trigger