Fixed cross browser inconsistencies.