fix [-Wparentheses] warning