Found a bug and fixed it