bug fix with Dom allowEvents when an array is given