corrected Factory to JFactory line 50 #346