Period group function fix. Close #68