fixed duplicated method/flag name, thanks to Bernhard Mallinger