fixed bug in adoption application