fixing bugs when creating entries