added line to prevent JSON errors to crash the whole thing