fixing assert len