galleries references bad singular form fix