some fixes to gre tunnel creation alghoritm