Infinite Reload

I have a master details form and everything works fine but when I click the reload/refresh button it seems to be stuck in an infinite loop. When I get rid of the details form completely the form reloads fine. I am thinking it has something to do with my global variables in the details form?