Fixed problems when #objectives is 0