Fixed problem with initial load of tab