fix forking with attachable resources