  Jet suppression is considered to be a powerful tool to study the properties
of a QCD medium created in ultra-relativistic heavy ion collisions. However,
theoretical predictions obtained by using jet energy loss in static QCD medium
show disagreement with experimental data, which is known as the heavy flavor
puzzle at RHIC. We calculate the suppression patterns of pions and single
electrons for Au+Au collisions at RHIC by including the energy loss in a finite
size dynamical QCD medium, with finite magnetic mass effects taken into
account. In contrast to the static case, we here report a good agreement with
the experimental results, where this agreement is robust with respect to
magnetic mass values. Therefore, the inclusion of dynamical QCD medium effects
provides a reasonable explanation of the heavy flavor puzzle at RHIC.
