Fixed a bug that could lead to incorrect action url's