Fix bug in emitting background ellipses