Fixing bugs with profiles