iOS bug fixing