fix bug with auto detection