fixed diff error on double first input.