fixing bug with date field ID
include model_name initialization when using with complex field