Fixed bug detecting spec id from URL