fix for expect