Fixed bugs in function module and polyhedron mult module.