Fix page tab creation