fixed handling of simple plot