leading 0 and reset fixes