fix built for different hotplug
from lyapota git