Minor bugs were fixed