Fixed typo in error thrown

Changed `fragement` => `fragment`