fix conditional compile