fixed spyfunctions in UISpec