fixes #20 - updating period only if it's not already set