Fixed route bug for gallery