Compile fix + define undefined error value