fix bug where 0 definitions cannot be specified