resource load fix when something messy is in the end of the lines or below