Error in parent() selection for one span