bugfix, when there is no datamap, should still works