fix return value of loadModel