Fixes bug introduced in 2dea4fab370