Fixed a bug with photo browser instance reuse.