Tab Break is getting hidden after submit

I have two tabs on my custom doctype, but after submission, they both get hidden, leaving the fields of the second tab to be completely inaccessible. However the fields in the first tab are visible.