Fixed date parse and attachment highlight undefined