Sometimes recieve Indexoutofrangeexception