bug with nil in weather & distance directives init