Given an integer nonsingular n×n matrix M and a point y∈Rn/Zn, consider the set E~(M,y) of vectors x∈Rn such that y is not a limit point of the sequence {MkxmodZn:k∈N}. S.G. Dani showed in 1988 that whenever M is semisimple and y∈Qn/Zn, the set E~(M,y) has full Hausdorff dimension. In this paper we strengthen this result, extending it to arbitrary y∈Rn/Zn and integer nonsingular M, and in fact replacing the sequence of powers of M by any lacunary sequence of (not necessarily integer) m×n matrices. Furthermore, we show that sets of the form E~(M,y) and their generalizations always intersect with `sufficiently regular' fractal subsets of Rn. As an application we give an alternative proof of a recent result of Einsiedler and Tseng on badly approximable systems of affine forms.