fix conditional import