Fix undefined object.

I have an error if I doesn't use the right panel.
This seems to fix it :) (and the left at same time)