fix conditional build