Fix a bug to allow insert negative elements and print properly