glw: Fix bug in value2size()