fixing error, which didn't came out because of the flickering
injecting Clock