A bugfix and some debug output for skins