Add a few modifications to fix signal path when generating LUTs. Be carefull, this modifications aren't meant for use other than generating LUTs working in an 0-1 scale