minor bug fix with scal