Fixed issue with not being able to create new galleries.