Fix bug with constant extractors