Fix error with caputre and window interfaces