Fixed formatdate error