minor bug

change nil by 0
commit