fixing incorrect error message when vol parameter is missing