fixed bug in creating requests