bug fix for procedure names with spaces