Memory issues with windows