fixed len bug