Fix non-element issue when not present