Fixed bug: Associated files being added to wrong place