Fix bug under FF