fix for nextgen gallery