fix to document selector