Fixed bug with multiple active goals