fixed bugs: cors back, elem instances back