getElements work correctly