fixed matlab interaction