Remove log in wrong place