added fix for inline model