queuescript bugfix with event directive