Fixed a bug and added support for LZF