Fix the case where paste from the context menu does not work in firefox