Fix warnings

Fix two compiler warnings that had appeared