Remove warning in spec