parser: Fixed procedure return type bug