Wrong segmentation if was passed in reverse order fixed.