Bugs fixing

It's help when we have very long data in table. Because when INSERT more than 1MB we receive error "not enough memory"