Incorrect implementation of LibFM, useful things in there to correct the implementation