download attachment fix - another recursion fix