Fixed some problems with cosito