Stopped unnecessary message appearing