fixed the type calc for static value expression