Fixed readData length issue