Bug in returning a capability