Fixed sg and op bug from Travis.