Fix bug in infinite panels.