Rendering bug with edit buttons