Correct a bug to make it work with the 5 panels