Thank you for helping out.
I tried the command but after rebooting i keep getting the same error.
All mount points seem to be fixed but FreeNas is still unable to find the template.
Sorry I couldn't help. I solved the issue that way when I realized the link you posted had that line of command missing This is link of where the original command was from