Fix camera API issue