Fixed bug on keeping the type url