Fix for recursive drop down menu.

Signed-off-by: Guillaume Poirier-Morency <guillaumepoiriermorency@gmail.com>