Fix type bug on value node