Fixing Gallery 2 arguments problem