Fixed a bug in the learn method of the LSPI class