hopefully fixes a strange bug