Fixed some problems with multiple render targets