fixed problem on initial call