fix mandrill errors