Fix some patterns