Prevents applicationcrashes which occured random by ArrayIndexOutOfBoundsException