fix ordering of const - closes #855