fixes bug of element