Fix "Build" menu not working after previous code refactor