fixed a very major bug