Bug fix.

Signed-off-by: Arica Liu <aricaliu@wpi.edu>