Fixed the canWrite policy