Solved bug with inokation of generic

Added default parameters without casting.