Replace p by panel when looping over panels.