fixing access bug