Fixed a bug with structures