fix the bug of front camera not working problem