When I dismiss my Modal View to return to the Navigation Controller View I get this strange behavior with my StatusBar

I use [[UIApplication sharedApplication] setStatusBarHidden:YES]; in the ViewDidLoad for my Modal View and I use [[UIApplication sharedApplication] setStatusBarHidden:NO]; in my NavController View.
Any ideas on how can I prevent this? Thanks in advance!