Fix bug of get field value by magic method.