small fix - using 0 instead of NULL