Minor improvement in frames system.
Merge pull request #100 from ayaigame/frames-improvement

Minor improvement in frames system.