fixing regression where samples weren't being renamed correctly