fix to gallery