Fix access token check