fixed offline plotting issue
fixed off-line plotting issues