Fix requirements. Closes #2170.