How are you calling the function? If you call it like this
then it will only return the first output. But it should return both if you call it like this
If that does not explain it, please post more information about how you are calling the function.