fixed issue 1527 with smartgrid (again), thanks ato.steil