Fixed bug where default value was being always returned if the default case was above a matching condition. Imrpoved Stash variable access