fixed a beautiful bug.