BUG-FIX FIrefox throw error on definition bad function