url attachment fix