bugfix tuple value check