Added missing delete call in Factory Draw Function