Fixes faulty logging in sources