Fixed notices.

Called constant the wrong thing in a few places because I'm shit.