fixed issue with Scalar attributes