added brackets to avoid casting errors in control functions

Signed-off-by: Stefan Venz <ikstream86@gmail.com>