Not sure if code is shit, or found bug in Travis-CI