fix slug compile pattern