fixed compilation #967