fixed multiple photo issue