fixed bug when not using boost