Invalid numeric argument to getGalleryDetails() :: ery=2