fix missing brackets in timestamp comparison