scope $on fix