fixed a bug that specifies incorrect access flag