Fixes security problems