Fix frame index on layers dump

Fix layers dump doesn't change according to frame slider.