Prevent calling the  method twice on load