Fixed bug where elements wouldnt be in a row