(Partially) fixed getElementObject