Fix: not active file error
Fix: on_select -1 support