Testing in RNN- negative values

Hello,
I have a problem with GRU layers in my model were it return values with negative only for testing? and hence the counted loss for the testing is nan !
any suggestions?

Thanks