Part of the A50 was shut for several hours