Bug fix with with bed attribute access