fix return false on firefox