Rename dimension to dim