Changed UITableViewController to UIViewController and the bug was gone!