Fixes an issue with node declarations

They should not have had a return type other than void.