Updated to stop producing errosrs on the mac