Fix the debug implementation of Resource#stage as well