map now working on reloads