fix setType errors
handle dragimage