Fix for issue: Previous frames is reset when a new one is added.