Fix type in gallery manager