Fixing minor bug