Fixed ESB button so it compiles in advanced mode