bug in parseValue