fixed invalid access method