Fixed a small part of the code