core: Fix incorrectly placed parenthesis

Signed-off-by: Robin Hallabro <robin.hallabro@sveabyran.se>