Moved theme init to before pedisable