swap start point and end point in right way
fix type of exception in getShortCut