fix conditional compilation