fix a bug of access validation