fix another attachment bug