fix bug in bound resource implementation