fixed put route bug with null entries