fix error on online maps from localhost