fix trunc of const