Xray machine fixes