a reference bug fixed

Fixing bugs is 10 times easier than solving these problems on books,perhaps.