web: fix debug option breakage in Main