Prevent undefined error stack