$body was not defined within settings function