fix init class remove for margin removal