corrects modal behavior

Signed-off-by: Levi Tan Ong <levi@byimplication.com>