bugfix for photos not loading