Bugfix for photos controller