bugs fixes in clipPickle
minor change to constrainUI