Fixed a bug with elements higher than one row not working properly when the layout just one column wide