fixes that no values can be inserted when there is no dataset