Fixes a bug regarding devices not doing any work.