Wrong 'write_connection' variable in models.