fix length error