STATUS_NONE should be equals to -1 instead of 0. fixes #503