Cut data error on too long data

Fix #187