Fix for support of camera target

It is reported at #1109 from @andrewvarga.