Fixed undefined skinr variable