bugfixing background patterns