A hack to properly expose ports on scaling.