Fixed crash bug with observer mode