Fixes a bug with labels