dlm: fix ordering of bast and cast