Frame resetting correctly working.