bug fix
1. length error