[BUGFIX] The  type attributes weren't working for zero values.