Fixed a very amusing bug