Set correct class