Fixed some bugs in Homework and AddHomework.

No moths, just small bugs.

Signed-off-by: nicholaslum444 <nicholaslum444@hotmail.com>