fix role variable