Rapid fix on window resize function
Short fixes