This may have fixed it! Wrapped in drupal function (should read more) and add .once