Started cleaning rules
Fixed widget bug when scaling and rotating