Fix bug with changing objective properties