fix to work well in others browsers