fixed origins points from xml