Fix parsing error with ~ versus -