fix attach camera bug