corrected fixed point code generation