bug fix that gave error on project page if no second attachment