Workaroud for vector<bool>. Seems ugly to me, but it works.