Fixes #1829. Changes proposed in this pull request: - Use _raw_spec when cloning --------- Co-authored-by: Robbe Sneyders <robbe.sneyders@gmail.com>