Fixed bug where the cookie might not have the trailing ";"

Like when it is the last cookie