fix #37
fix unit test over max length