bugfix in getValue