fix compilation problem for 400 and 401