Fixed an embarrassing bug