fixed a bug with empty skinclass