Tackling some undefined errors

Signed-off-by: Suki <suki@missallsunday.com>