Text alignment and flags fixed