AC-1079 fixed one off bug on bad expressions that causes 500 on api