Fixed bug in function to get factory menu; return menu instead of True.

@maethu