small fix with validity