High-resolution scanning transmission electron microscopy (HR-STEM) with spherical aberration correction enables researchers to peer into two-dimensional (2D) materials and correlate the material properties with those of single atoms. The maximum intensity of corrected electron beam is confined in the area having sub-angstrom size. Meanwhile, the residual threefold astigmatism of the electron probe implies a triangular shape distribution of the intensity, whereas its tails overlap and thus interact with several atomic species simultaneously. The result is the resonant modulation of contrast that interferes the determination of phase transition of 2D materials. Here, we theoretically reveal and experimentally determine the origin of resonant modulation of contrast and its unintended impact on violating the power-law dependence of contrast on coordination modes between transition metal and chalcogenide atoms. The finding illuminates the correlation between atomic contrast, spatially inequivalent chalcogenide orientation, and residual threefold astigmatism on determining the atomic structure of emerging 2D materials.