changes to the rename function to take into account of API changes made at CartoDB v2.9.1