Fix bad assignment causing sourceType to fail

Closes #184.