Fixed bug with double periods