Made build on Linux more stable.
??
Revert "??"

This reverts commit ec1038d99a8f3a658f8c0b435478697ab50ed1c4.
Added rect intersection check