fix #4475 (refactoring mistake in 5f9d050)