fix package main property error bug when update
edit inject resource method name