Fixed all undefined … warnings