Fixes to gif building bug