prevented possible total boost error
Merge pull request #702 from D0rako/master

Fixed possible boost total error