fixed bug when building the fpm string