fix the size adaptive bug