fixed purple bug