Fix wrong type
Fix ignorance of warnings