fix bug access to method behavior