fixed conditional compile