fix get warnings bug