Photo sensor fix