fix so this module works with null end or null start