Remove extra empty lines from model class
Fix setting model data without a graphics context