Handled index out of bound exceptions in display handler.