Bug fix on MultipassRenderer (which crashes otherwise)