Updated settings api
Fixed injection