fix bug in skin change function