fixed missing support for #if