Fixed bug from no period file being passed