Fix cookie drawing