Fixed std::bad_alloc error

It was a pain in the ass and a ctr-c + ctr-v mistake