Fixed iOS bug