fix firefox carriage return issue