Fixed bug in wront URLs order and Regex function