Fixes #2790

Fixes #2790
should this be dirty?