Fixed cross browser issues.