Auto remove hash & range from data when updating