properly fix flags, according to docs

Signed-off-by: Jan Dvořák <mordae@anilinux.org>