fixing the bug with star at first render