Fixed bug and updated version