Fix server-side crash with imports