fixed a defct with injecting method params