bug fix when only a constant in shadow approx