fix the bug in the upper division part