Update skin.py

fix some skin Crashes