Setting up a flag after initialization

Signed-off-by: Slava Barinov <rayslava@gmail.com>