fix undefined request