fix for last patch in the mockapi