Fixed too many zeros in resulting functions

Signed-off-by: Jedabero <jedabero@hotmail.com>