Fix for casting weather code to int when it was read from cookie