fix bug with constant null