Remove some warnings from error