Photo ordering bug fix