bugfix and cosmetics

Signed-off-by: Adam Dybbroe <adam.dybbroe@smhi.se>