Fixed broken initial call of request animation frame