A small but crucial bug fixed