avoid fp exception