Fixed a bit of code