Fix getData function

Fix getData function to find sync bit